ADATE

Syntax: ADATE seconds
Location: QL ROM

ADATE adjusts the current system clock by the given number of seconds, so ADATE 60 would advance the internal clock by a minute and ADATE -86400 sets it back by one day.

NOTE:
Any attempts to wind the system clock back to earlier than 1st Jan 1961 will actually deduct the difference from 6th Feb 2097. However, the system clock may run into trouble here after 3.14:07 on 19th Jan 2029.

The system clock itself, does however appear able to support dates and times between 0.0:00 on 1st Jan 1961 and 6.28:15 on 6th Feb 2097.

WARNING:
ADATE will affect the time on battery backed clocks unless they are protected in some way (see PROT_DATE).

CROSS-REFERENCE:
DATE$ returns the current system date and time as a string, DATE does the same but in a less readable form - in seconds after the initial date.
SDATE sets the clock to an absolute date and time.
Battery backed clocks generally have their own methods of altering their date and time.
